package com.personal.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.util.Date;

public class TCoach {
    private Integer coachid;

    private String coachLogName;
    private String coachpassword;

    private String coachrealname;

    private String coachsex;



    private String address;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hiredate;

    private String cotype;

    private String coachstates;
    private Integer coachrole;
    private TRole trole;

    public TRole getTrole() {
        return trole;
    }

    public void setTrole(TRole trole) {
        this.trole = trole;
    }

    public Integer getCoachrole() {
        return coachrole;
    }

    public void setCoachrole(Integer coachrole) {
        this.coachrole = coachrole;
    }

    public Integer getCoachid() {
        return coachid;
    }

    public void setCoachid(Integer coachid) {
        this.coachid = coachid;
    }

    public String getCoachpassword() {
        return coachpassword;
    }

    public void setCoachpassword(String coachpassword) {
        this.coachpassword = coachpassword == null ? null : coachpassword.trim();
    }

    public String getCoachrealname() {
        return coachrealname;
    }

    public void setCoachrealname(String coachrealname) {
        this.coachrealname = coachrealname == null ? null : coachrealname.trim();
    }

    public String getCoachsex() {
        return coachsex;
    }

    public void setCoachsex(String coachsex) {
        this.coachsex = coachsex == null ? null : coachsex.trim();
    }

    @Override
    public String toString() {
        return "TCoach{" +
                "coachid=" + coachid +
                ", coachpassword='" + coachpassword + '\'' +
                ", coachrealname='" + coachrealname + '\'' +
                ", coachsex='" + coachsex + '\'' +
                ", coachLogName='" + coachLogName + '\'' +
                ", address='" + address + '\'' +
                ", hiredate=" + hiredate +
                ", cotype='" + cotype + '\'' +
                ", coachstates='" + coachstates + '\'' +
                ", coachrole=" + coachrole +
                ", trole=" + trole +
                '}';
    }

    public String getCoachLogName() {
        return coachLogName;
    }

    public void setCoachLogName(String coachLogName) {
        this.coachLogName = coachLogName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Date getHiredate() {
        return hiredate;
    }

    public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }

    public String getCotype() {
        return cotype;
    }

    public void setCotype(String cotype) {
        this.cotype = cotype == null ? null : cotype.trim();
    }

    public String getCoachstates() {
        return coachstates;
    }

    public void setCoachstates(String coachstates) {
        this.coachstates = coachstates == null ? null : coachstates.trim();
    }
}